package com.example.cart;

import java.util.List;
import java.util.Vector;


public class ProductHelper {
	protected static final String PRODUCT_INDEX = "com.example.cart.producthelper";
	public static List<Product> list;
	private static List<Product> cart;
	 public static List<Product> getCatalog(){
		  if(list == null) {
			  list = new Vector<Product>();
		   Product item_details = new Product();
	    	item_details.setName("Pizza");
	    	item_details.setItemDescription("Spicy Chiken Pizza");
	    	item_details.setPrice("RS 310.00");
	    	item_details.setImageNumber(1);
	    	item_details.setCategory(1);
	    	list.add(item_details);
	    	
	    	item_details = new Product();
	    	item_details.setName("Burger");
	    	item_details.setItemDescription("Beef Burger");
	    	item_details.setPrice("RS 350.00");
	    	item_details.setImageNumber(2);
	    	item_details.setCategory(1);
	    	list.add(item_details);
	    	
	    	item_details = new Product();
	    	item_details.setName("Pizza");
	    	item_details.setItemDescription("Chiken Pizza");
	    	item_details.setPrice("RS 250.00");
	    	item_details.setImageNumber(3);
	    	item_details.setCategory(1);
	    	list.add(item_details);
	    	
	    	item_details = new Product();
	    	item_details.setName("Burger");
	    	item_details.setItemDescription("Chicken Burger");
	    	item_details.setPrice("RS 350.00");
	    	item_details.setImageNumber(4);
	    	item_details.setCategory(1);
	    	list.add(item_details);
	    	
	    	item_details = new Product();
	    	item_details.setName("Burger");
	    	item_details.setItemDescription("Fish Burger");
	    	item_details.setPrice("RS 310.00");
	    	item_details.setImageNumber(5);
	    	item_details.setCategory(1);
	    	list.add(item_details);
	    	
	    	item_details = new Product();
	    	item_details.setName("Mango");
	    	item_details.setItemDescription("Mango Juice");
	    	item_details.setPrice("RS 250.00");
	    	item_details.setImageNumber(6);
	    	item_details.setCategory(2);
	    	list.add(item_details);
		  }
		  
		  return list;
	 }
	 
	 public static List<Product> getCart() {
		  if(cart == null) {
		   cart = new Vector<Product>();
		  }
		   
		  return cart;
	 }
}
